home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / dejagnu.lha / dejagnu-1.0.1 / expect / HISTORY < prev    next >
Text File  |  1993-04-26  |  63KB  |  1,468 lines

  1. This is the HISTORY file for Expect.  Modifications made by Cygnus
  2. support are in ChangeLog. - Don
  3.  
  4. Date    Version    Description
  5. -------    -------    ------------------------------------------------------
  6. 4/19/93    4.5.2    Achim Flammenkamp <achim@HRZ.Uni-Bielefeld.DE> noted that I
  7.         documented full_buffer as buffer_full.
  8.  
  9.         Ted Stockwell <ted@sirius.aggregate.com> noted that wait arg
  10.         was missing an & in configure test.
  11.  
  12.         Scott Hess noted that systems can have wait4 without waitpid.
  13.  
  14.         Jonathan Kamens <jik@gza.com> noted/fixed some things that
  15.         weren't autoconf'd correctly: pid_t, RETSIGTYPE, malloc.
  16.  
  17.         Gary Shea noted that a recent change to expectk made it not
  18.         default to interactive.        
  19.  
  20. 4/12/93    4.5.1    At request of Rusty Wilson <zrlw05@hou.amoco.com>, added
  21.         "-console" to spawn.
  22.  
  23.         Pang Wai Man Raymond <wmpang@cuse1.se.cuhk.hk> reported that
  24.         passmass didn't grok DEC's passwd prompts for root.
  25.  
  26. 4/7/93    4.5.0    Fixed bug in interact regexp preventing match of multichar
  27.         literals.
  28.  
  29. 4/6/93    4.4.3    Bennett Todd <bet@sbi.com> noted missing example scripts
  30.         timed-read and time-run.
  31.  
  32. 3/29/93    4.4.2    Bill Houle <Bill.House@SanDiego.NCR.COM reported fixes
  33.         for SVR4 pty support to compile.        
  34.  
  35.         Made string matcher understand *$.  Documented tty_spawn_id.
  36.         Made command line -i override -f.
  37.  
  38.         For Tuan Doan <tdoan@bnr.ca> on HP, make kibitz use domainname
  39.         as fallback and used whoami instead of env(USER).
  40.  
  41.         Fixed bug in the generic pty code that could report out of ptys
  42.         because an earlier slave slowly deleted the lock file.
  43.  
  44. 3/25/93 4.4.1    Stephen House <sdhouse@bnr.ca> reported exp_tk.c wouldn't
  45.         compile on HP.  Fixed.
  46.  
  47. 3/24/93    4.4.0    Added back SVR4-style pty allocation which got omitted in the
  48.         autoconfig process.  Fixed bug in interact's -update handling.
  49.         Fixed bug in weather script that cut off long reports.
  50.  
  51. 3/15/93 4.3.0    Cleaned up /tmp files used during pty locking.
  52.  
  53.         Added command "parity" to enable parity stripping.  Fixed
  54.         match_max to do -i correctly.
  55.  
  56. 3/15/93    4.2.4    Fixed to work on new SGI which returns slave-close via excep
  57.         (select) or POLLERR (poll) rather than thru read().  Why do you
  58.         people do things like this?
  59.  
  60. 3/12/93    4.2.3    Fixed to work on AIX (using /dev/ptc) and UTS (using getpty).
  61.  
  62. 3/11/93 4.2.1-2    Fixed numerous bugs relating to HP ptys.  It's amazing that for
  63.         their bewildering complexity, they couldn't support generation
  64.         of EOF to the master (or at least enable trapping of just
  65.         close), rather than forcing the code to know about opens, too.
  66.  
  67. 3/8/93    4.2.0    Integrated Rob Savoye's autoconfig code.
  68.  
  69.         Interact mishandled new -eof flag.  Added -update.
  70.  
  71.         Gary Shea <shea@cs.ukans.edu> noted that tkwait hung if
  72.         expect had been called.  Rewrote most of tk_event.c and fixed
  73.         some other problems related to efficiency & multiple timeouts.
  74.  
  75.         E Beck <beck@qtp.ufl.edu> suggested mods to more easily support
  76.         Extended Tcl.
  77.  
  78.         Bill Mitchell <mitchell@mdd.comm.mot.com> reported problems on
  79.         4.3+BSD.  Added    support for TIOCSCTTY.
  80.  
  81.         Dana Burd <dana@wrs.com> noted that "exit" caused by ^C during
  82.         expect didn't work - just returning to expect.  Fixed, and then
  83.         removed "feature" of ^C to abort a timeout.  This feature
  84.         proved a lot less useful than I thought it would.
  85.  
  86. 2/21/93 4.1.0    Bill Tierney <wtierney@leland.stanford.edu> noted that double
  87.         close dumped core.  Rewrote fd_to_f and close/adjust functions.
  88.  
  89.         Interactive interpreter() didn't properly wait in
  90.         get_next_event, so Tk stopped responding to events.
  91.         Wrote version of interpreter that shares expect's input buffers
  92.         but can't think of a use.  Left as an ifdef SHARE_CMD_BUFFER.
  93.  
  94. 1/26/93    4.0.1    Added eof check to xpstat.  Removed incorrect and unnec.
  95.         #includes from exp_main_exp.c
  96.  
  97.         Chip Rosenthal <chip@chinacat.unicom.com> found my refs to
  98.         tclRegexpError need externs on systems that don't use Tcl's
  99.         string.h.  string.h should probably be changed not to refer to
  100.         tclInt.h.
  101.  
  102.         Added FAQ about Expect's copyright status.
  103.  
  104.         Mark Christopher <christo@bnr.ca> pointed out some really
  105.         stupid errors in the HP support for select.    
  106.  
  107. 12/16/92 4.0.0    Rewrote interact.  Made re-entrant thru event-handler for Tk.
  108.         (Same for Expect.)  Abstracted out common code so that
  109.         remainder is specific to select vs poll vs tk (although
  110.         "simple" was impossible to handle).  Added timeouts, regexps
  111.         (at request of numerous people), ability to set up arbitrary
  112.         graphs of process flows, and some miscellaneous but useful
  113.         functionality.  New flags are: -input, -output, -re, -echo,
  114.         -flush, -eof.
  115.  
  116.         Added "-noecho" to spawn command.
  117.  
  118.         Added getpid command.  Something with this functionality should
  119.         be added to the Tcl core.  When it is, this function will go
  120.         away.
  121.  
  122.         Removed assumption of global "interp" handle.  Rewrote init
  123.         and other routines for use as libraries.  Added appropriate
  124.         glue to Makefile.
  125.  
  126.         At request of Rob Savoye <rob@cygnus.com> added "send_log" and
  127.         disabled buffering on all output.  The only affect unbuffered
  128.         output will cause users is if they pass large strings in
  129.         multiple args to send.
  130.  
  131.         Ray Davis <rdavis@masschaos.de.convex.com> reported Convex 
  132.         could not do job control from spawned procs.  I added a symbol
  133.         DO_SETSID to force this.
  134.  
  135.         Martin Leisner modified rftp to understand iftp.  I added it
  136.         to the publicly donated scripts directory.
  137.  
  138. 11/17/92 3.24.1    Martin Leisner suggested Makefile use $(MAKE) and support Tcl
  139.         as a Sun shared library.
  140.  
  141.         Seth Perlman <seth@welchgate.welch.jhu.edu> suggested interact
  142.         support timeout.  I've added this as "-timeout" in inter_select
  143.         but left undocumented while we experiment with interface.
  144.  
  145.         Joe VanAndel <vanandel@ncar.ucar.edu> pointed out that su2
  146.         script still used old syntax.  Fixed.
  147.  
  148.         Konrad Haedener <haedener@iacrs1.unibe.ch> fixed a bug in
  149.         POSIX tty handling on AIX.  Surprisingly, we discovered AIX
  150.         worked just fine when pty_bsd is used and without -DPOSIX!
  151.  
  152.         Doug (George Jetson) <pynq@midway.uchicago.edu> pointed out
  153.         that a spawn_id for /dev/tty would be really handy.  I added
  154.         tty_spawn_id for this purpose.
  155.  
  156. 11/4/92 3.24.0    After problem reported by James Ward <jew@sunquest.com> added
  157.         to man page describing delays required by hardware such as for
  158.         UART switching.
  159.  
  160.         Recoded all \C sequences as \### in examples and man page in
  161.         anticipation of them going away in next version of Tcl.
  162.  
  163.         Switched to printing errorInfo during errors instead of the
  164.         command and only the top-level error message.  Since this
  165.         includes entire stack, this should be very helpful.
  166.  
  167.         J. Cazander <cazander:pasichva via serigate@phcoms.seri.
  168.         philips.nl> reported that purify found a write beyond the end
  169.         of an input buffer.  Lucked, it was just before a double-word
  170.         boundary, so it probably isn't a problem.  I fixed it anyway.
  171.  
  172. 10/9/92    3.23.1    Tor Lillqvist <tml@tik.vtt.fi> supplied support for HP 8.0.7 in
  173.         POSIX-mode, and a bugfix for POSIX tty mode switching
  174.  
  175. 10/8/92    3.23.0    Larry Rogers <lrr@Princeton.EDU> reported that "weather" blew
  176.         up in spawn.  I'll add a catch-all to the script to report
  177.         similar problems (out of ptys, processes, etc.)
  178.  
  179.         Ting Leung <tleung@bnr.ca> notes that log() in human_write can
  180.         receive a 0 (domain error).  Fixed unit_random to avoid that.
  181.  
  182.         Tony Primavera <aprima@xox.ssc.af.mil> notes that the sample
  183.         archie script needs to understand mcgill's limit of 10 users.
  184.         Tor Lillqvist <tml@tik.vtt.fi> noted that a lesser-used pattern
  185.         ("unknown...") is incorrect.
  186.  
  187.         Grant Taylor <gat@pecan.cray.com> found a problem when forking
  188.         (using Expect's fork) multiple processes, each of which spawned
  189.         something.  In the BSD pty support, I had used the pid to build
  190.         a temporary file for testing the pty before actual use.  When
  191.         multiple processes tried to use the same tempfile, it blew up.
  192.  
  193. 8/12/92    3.22.13    Corey Satten pointed out that -u on cat caused kibitz to slow
  194.         down on Ultrix.  I see the same behavior on SunOS.  I added an
  195.         option to fix it for systems that need it.  Corey also noted
  196.         arg miscounting in kibitz, and pointed out that world-readable
  197.         fifos could be a security problem.  He gave a fix for this and
  198.         also a fix to force ptys to be put into raw mode.
  199.  
  200.         Terrence Brannon <tb06@pl122e.eecs.lehigh.edu> reported rftp
  201.         referenced the undefined variable 'transfer'.  Turned out to be
  202.         a bug in the code to handle symbolic links.
  203.  
  204. 7/20/92 3.22.12    Added O_NOCTTY (if defined) in pty_bsd.c to avoid gaining
  205.         control terminal while testing pty when running as daemon.
  206.  
  207.         At request of Michael D. Riley <riley@mbeya.research.att.com>
  208.         added explanation to man page - how expect_after/before deal
  209.         with spawn_id.
  210.  
  211.         Charles Hannum discovered the problem with AIX (see earlier)
  212.         was a missing "extern" in the errno declaration.  Also, the
  213.         compiler was sensitive to a lack of access to the defn of
  214.         struct expect_special.
  215.  
  216.         Dave Coombs gave me yet another fix for the weather server to
  217.         accomodate its ever continual change.
  218.  
  219. 7/2/92    3.22.11    Yet more work.  Discovered that SunOS and Ultrix really like
  220.         setpgrp(0,0) much better than setpgrp(0,getpid()) but the
  221.         manual doesn't describe well why this seems to work better.
  222.         (The old call worked inconsistently.)
  223.  
  224. 6/30/92    3.22.10    Did more work on modifications to dissolve connection between
  225.         stdio and devtty.  Eventually, I'd like to add a separate
  226.         spawn_id for devtty (expect_devtty?).
  227.  
  228. 6/5/92    3.22.9    Hansel Wan <hhw0@gte.com> noted that $errorInfo was clobbered
  229.         by prompt1.  To prevent this, I added a default definition
  230.         for prompt1 (and prompt2 while I was at it).
  231.  
  232.         Unnati Amin <uxa@po.cwru.edu> noted that the example scripts
  233.         checked for $ in prompts which didn't work.  This bug was
  234.         created when $ was turned into a "match end-of-input" char
  235.         in the transition from v2 to v3.  Solution: backslash the $.
  236.  
  237.         A few parts of code assumed spawn_id was always stdin, which
  238.         caused "send" to send to stdout, which meant succeeding
  239.         expect's hung, waiting forever.  Fixed is_user macro.
  240.         This was a problem with scripts that redirected stdin or
  241.         somehow reused fd 0.  Surprising that no one ever did that
  242.         before - also surprising that it didn't bother cron jobs.
  243.  
  244. 6/2/92    3.22.8    Man pages fixes from Matt Crawford crawdad@fncent.fnal.gov.
  245.  
  246. 5/12/92    3.22.7    Missing ; in Makefile, screwed up chmod.
  247.  
  248.         Fixed bug that caused interact to think the modes had changed
  249.         when they hadn't.
  250.  
  251. 5/11/92    3.22.6    Added regression paper to ftp archive - published in the 1992
  252.         USENIX San Antonio Proceedings.
  253.  
  254.         Swapped setpgrp and fork in disconnect command for sysV88.
  255.         According to Dave Schmitt <daves@techmpc.csg.gss.mot.com>,
  256.         original code (right out of Stevens) starts the child with
  257.         closed stdio fds.
  258.  
  259.         Fixed bug in interact that changed /dev/tty modes even if
  260.         interact was used to connect two completely different ttys.
  261.         Had never been a problem before, but today I wrote some code
  262.         that actually calls interact from cron!  Also, copied the
  263.         experimental fix from 3.22.5 to inter_poll.
  264.  
  265.         Jeremy Nussbaum <jeremy@world.std.com> says cat needs "-u" in
  266.         kibitz for his HP 8.0 system to work.  I wonder why this has
  267.         never been a problem on earlier HP and other systems?
  268.  
  269.         Forced Makefile to mark scripts executable.
  270.  
  271. 4/12/92    3.22.5    Fixed bugs reported by Matt Ranney <mjr@uther.Calvin.EDU>
  272.         including a syntax error (!) in expect.c on ecases_inuse.
  273.         I didn't even compile this before pushing out?  He also noted
  274.         some # were not in column 1.
  275.  
  276.         I put in an experimental fix to interact (only in select
  277.         version currently) to fix when pattern matching from master
  278.         and user needs to continue typing in order to complete match.
  279.  
  280. 4/3/92    3.22.4    Charles Hannum (mycroft@gnu.ai.mit.edu) pointed out that I
  281.         screwed up a comment in the brand new pty_aix3.c.  He also gave
  282.         me a fix for an arg-less expect, which did a malloc(0).  And
  283.         he said that AIX ptys return EOF in yet a new way - read()
  284.         returns -1 with errno == 0.  Yuck.
  285.  
  286. 3/29/92    3.22.3    Jay Schmidgall gave me yet another pty_aix3.c.  He also gave
  287.         ifdefs for POSIX terminal support.
  288.  
  289. 3/18/92    3.22.2    Jay Schmidgall <shmdgljd+@rchland.ibm.com> modified pty_sgi3.c
  290.         to make a pty interface for recent versions of AIX.
  291.  
  292.         Steve Summit <scs@adam.mit.edu> noted that "trap 0" could
  293.         actually call signal(0...)
  294.  
  295.         Martin Leisner <Martin_A._Leisner.Henr801C@xerox.com> noted
  296.         that rftp was broken.  It seems I never handled symlinks.  They
  297.         are interesting.  You can't tell from the listing whether they
  298.         are files or directories, so you just have to blindly go ahead
  299.         and assume it's one or the other and see what happens!
  300.  
  301. 3/11/92 3.22.1    In talking to Dave Schmitt ,daves@techmpc.csg.gss.mot.com>,
  302.         realized the documentation for wait had never been updated
  303.         from the way it used to work in v2 (returning any pid).
  304.  
  305. 3/11/92    3.22.0    Another question from Ron, prompted me to find another bug.
  306.         interact -o wrongly manipulated the user buffer at one point.
  307.  
  308. 3/10/92    3.21.0    Ron Young <ron@nevada.edu> found that spawn failed on a
  309.         DECstation 3100 running Ultrix 4.2.  I had forgotten to test
  310.         that cmdfile was valid before comparing against stdin in fix
  311.         related to fflush in 3.20.0.
  312.  
  313.         While I was on a DECstation, I noticed that it does not accept
  314.         setpgrp(...,0).  Changed 2nd arg to getpid().
  315.  
  316. 3/6/92    3.20.2    Stefan Farestam <farestam@orion.cerfacs.fr> provided a new
  317.         version of pty_sgi.c which uses _getpty.  I renamed the old
  318.         one pty_sgi3.c
  319.  
  320. 3/3/92    3.20.1    Brian Woodson requested I update the dates and version numbers.
  321.  
  322. 3/1/92    3.20.0    Prompted by a question from Ken Mandelberg, added -raw to
  323.         noidle and kibitz script.
  324.  
  325.         Fixed fflush(cmdfile) again, having been authoritatively told
  326.         by net wisdom that there is no way to portably fflush a shared
  327.         read-stream. (I take back my claim about a bug in HP's fclose!)
  328.  
  329.         John Sellens gave me some more fixes for non-DEC MIPS OS.
  330.  
  331. 2/22/92    3.19.1    John Sellens <jmsellen@watmath.waterloo.edu> gave me a bug
  332.         fix for NOWAITPID.
  333.  
  334. 2/21/92 3.19.0    Found a bug in HPUX fclose!!  It moves the I/O pointer in the
  335.         shared file table entry!  This explains the symptoms I reported
  336.         earlier.  Fortunately, it's easy to code around (by me - it is
  337.         no longer necessary to fudge the scripts).
  338.  
  339.         Added some stuff to the man page to explain why expect behaves
  340.         the way it does in an emacs shell window and how to live with
  341.         it.
  342.  
  343. 2/21/92    3.18.0    Worked on the HP port some more.  The HP causes a real problem
  344.         by insisting SIGCLD be delivered in order for wait to return
  345.         a status.  This royally complicated the code, partly because
  346.         of the special casing all over the place in the trap command,
  347.         the asynchronous delivery of SIGCLD and also because Tcl itself
  348.         is not prepared to have system calls be interrupted.  Cleverly,
  349.         the HP also defines both CLD and CHLD which threw my macros
  350.         off at first.  Thanks, but I don't this kind of help!
  351.  
  352.         Anyway, the end result is that on the HP, SIGCLD is ignored.
  353.         The manual claims wait status will not be delivered but it
  354.         seems to be anyway.  Good grief!  (Even if it were ignored,
  355.         it would not be such a calamity, since wait is used mainly
  356.         to discard zombies on other systems.)
  357.  
  358.         A remaining problem is that there appears to be some odd
  359.         interaction, perhaps with fork, such that the script is rolled
  360.         back at eof if a spawned process happens to exit at the same
  361.         time.  The solution for now is to exit all scripts via exit
  362.         rather than letting exit be called implicitly.  There must be
  363.         some real bug, but I'm unable to find anything after lots of
  364.         testing, line and Saber.  At the moment, I'm highly suspicious
  365.         of the HP itself rather than expect.
  366.  
  367.         Bob Proulx and Jeff Okamoto supplied me with patches for
  368.         inter_select.c.  HP transmits some pty interactions via the
  369.         exception field in select.
  370.  
  371.         Michael Grant gave me a mod to grok ~ in the logfile and
  372.         debug commands.
  373.  
  374. 2/17/92    3.17.1    Brian Keves <keves@meaddata.com> pointed out that the man page
  375.         still referred to "expect_match" instead of "expect_out".
  376.  
  377. 2/12/92    3.17.0    Eric Arnold <Eric.Arnold@corp.sun.com> ran into a problem
  378.         when running in the background.  interact did ioctl(0...)s to
  379.         change the terminal mode, ignoring the -u flag.
  380.  
  381.         Fixed a bug in kibitz which blew up when asking for a password
  382.         due to a spelling error.  The drawbacks of interpreters...
  383.  
  384. 2/4/92    3.16.3    Dongchul Lim <lim@doctor.chem.yale.edu> noted that scripts can
  385.         hang in the background.  I had assumed isatty(0) was enough to
  386.         contrast bg/fg but it returns 1 if the script was started with
  387.         a & from the terminal.  I added code to watch if any ioctl(0)s
  388.         were done.  If so, than it is safe to do more, in particular
  389.         in the exit handler to reset the terminal modes.
  390.  
  391. 1/28/92    3.16.2    Fixed a bug on SV systems causing errors when trying to do
  392.         further reads after a SIGCLD had already arrived on a spawn_id.
  393.  
  394.         Peter Funk <pf@artcom0.north.de> gave mods for SCO XENIX 386.
  395.  
  396. 1/24/92    3.16.1    Oops.  Forgot to add pty_svr4.c to shar.
  397.  
  398. 1/13/92 3.16.0    Karl Lehenbauer <karl@sugar.NeoSoft.Com> a tiny change for
  399.         getting a clean compile on SCO 3.2.2.
  400.  
  401.         My getimeofday-avoidance code wasn't right, sigh.  Kibitz
  402.         noticed.  Fixed two other bugs in kibitz - password request
  403.         was for wrong user and it timed out but shouldn't have.
  404.  
  405.         Note: seems to work fine with new version of Tcl: 6.2
  406.  
  407. 1/13/92    3.15.1    Added a bit of code to avoid gettimeofday system calls when
  408.         timeout == -1.  Fixed minor bugs in kibitz relating to cleaning
  409.         up and returning error messages.
  410.  
  411.         Redid support for stdlib.h including making it default to fix
  412.         problem in Ultrix 4.2 reported by Oliver Kretzschmar <viskretz
  413.         @ikesg1.energietechnik.uni-stuttgart.de>.        
  414.  
  415.         Ian Johnstone <ianj@sequent.com> said his system (DYNIX 3.2)
  416.         needed an additional include <ctype.h> in inter_select.
  417.  
  418.         Dave Coombs <cme.nist.gov> added logic to test/weather to
  419.         accomodate a new feature in the weather server.
  420.  
  421.         Hal Peterson fixed some SV code that I just added for handling
  422.         SIGCLD properly.  He made the Cray-extra-child timeout in half
  423.         the normal timeout to allow distinguishing between eof and real
  424.         timeout.  Finished rest of Jeff Okamoto's fixes for HPUX.  
  425.  
  426.         Wally Strzelec <packman@tamuts.tamu.edu> provided mods for
  427.         Amdahl which has its own pty-handling functions.  Ifdef'd into
  428.         pty_usg.
  429.  
  430. 12/30/91 3.15.0    Fixed a bug that struck when eof occurred when reading from
  431.         multiple processes simultaneously and no user-supplied eof
  432.         handler.
  433.  
  434. 12/26/91 3.14.1    Ted Gibson <tgibson@logdis11.hq.aflc.af.mil> gave me some mods
  435.         for a 3B2 having to do with termio vs termios, etc.
  436.  
  437. 12/24/91 3.14.0    Deprecated expect 2.  Expect 3 is now the official version.
  438.  
  439.         Parag Patel <parag@netcom.netcom.com> gave me some #includes
  440.         necessary for A/UX 2.
  441.  
  442.         Brian Woodson noticed "send a b" generates incorrect debug
  443.         output.
  444.  
  445.         Working with Jeff Okamoto to run expect on HP/UX 8.0, we fixed
  446.         SIGCLD catching (he says HPUX doesn't ignore them by default?),
  447.         obviating longjmp from stomping locals, fixed a bug in cmdWait
  448.         that would prevent the wait status from being collected in
  449.         rare situations.
  450.  
  451. 12/17/91 3.13.1    James Davis suggested fixing Makefile to handle case where no
  452.         example scripts should be installed.  I added similar logic
  453.         for script man pages.
  454.  
  455.         Pete Siemsen fixed a bunch of things in the Makefile including
  456.         where to get expect when invoking fixline1.  He suggested defs
  457.         for supporting install and multiple MAN targets.
  458.  
  459. 12/12/91 3.13.0    Matthew Freedman <mattf@cac.washington.edu> noted mismatch
  460.         between lib man page (said "stty_init") and lib code (said
  461.         "exp_stty").  He also found a screwup in the library such that
  462.         the pty slave wasn't being set up correctly.
  463.  
  464.         Added note to kibitz man page on how to kibitz with 3 or more.
  465.  
  466. 12/12/91 3.12.0    "expect *" worked incorrectly if it was first expect after
  467.         spawn, due to buffer not being initialized.
  468.  
  469.         Added a good example for "expect -continue" to man page.
  470.         Added an FAQ about a gcc problem that seems to be common.
  471.  
  472. 12/11/91 3.11.2    James Davis noted I forgot to put kibitz.man in distribution.
  473.         I changed kibitz to read domain from resolv.conf instead of
  474.         calling domainname(1) for systems upon which NIS domainname
  475.         differs from Internet.
  476.  
  477.         Pete Siemsen <siemsen@barnard.usc.edu> noted slight error in
  478.         libexpect man page.
  479.  
  480. 12/10/91 3.11.1    A couple tiny mods to the Makefile courtesy of James B. Davis
  481.         and Michael Grant (guest worker from Sun, temporarily at
  482.         <mgrant@xdr.ncsl.nist.gov>.  Both of them also noted a problem
  483.         caused by incorrect installation of gcc that caused expect to
  484.         say "ioctl(set): Invalid something or other" upon exit.
  485.  
  486.         Fixed complaint about exit() while compiling without STDC.
  487.  
  488. 12/9/91 3.11.0    beta!
  489.  
  490.         Hal Peterson provided fixes for UNICOS 6.1 and 7.0 on both
  491.         CRAY-2 and CRAY Y-MP.  He also fixed a problem in interact
  492.         where malloc(0) could've occurred.
  493.  
  494.         Added support for allowing user to set interpreter prompt.
  495.  
  496.         Added forgotten -d flag to match_max in rftp script. 
  497.         Made kibitz understand user@host.
  498.  
  499.         Expect's internal buffer-full-handling incorrectly copied
  500.         the latter buffer half beginning from the end of the buffer.
  501.  
  502. 12/5/91 3.10.1    Massaged Makefile to allow for more flexibility in
  503.         installation, especially with regards to scripts.  #! is now
  504.         reset.
  505.  
  506.         Added "kibitz", a really cute script to let two people control
  507.         one program.  Example users are for one person to help another
  508.         remotely, logging a conversation (run emacs or whatever inside
  509.         kibitz and your conversation can be logged, scrolled backwards,
  510.         etc., or of course, playing games together.
  511.  
  512. 12/4/91    3.10.0    Tightened up arg checking for "wait" - it core dumped when it
  513.         should've said "syntax error".
  514.  
  515.         Rick Cady <rickc@nsd.3com.com> noted minor inconsistency in man
  516.         page describing strace.
  517.  
  518.         I fixed a bug that prevented "system stty -echo raw" from
  519.         working.  The raw data was clobbering the -echo data.
  520.  
  521. 12/3/91    3.9.0    Brian Woodson noted that "close -i ..." evoked a syntax error.
  522.         I had parsed the arguments incorrectly.
  523.  
  524.         After the nth request, I finally set up pub/expect/scripts as
  525.         a directory for scripts.
  526.  
  527. 12/2/91 3.8.0    Phil Sheperd <pshepher@loki.uni.edu.au> fixed a major bug in
  528.         exp_spawnv() preventing one side of the pty from being set up
  529.         correctly.  Thus nothing worked!  He also reported that his
  530.         system didn't have strdup, so I added an explicit defn of it.
  531.  
  532.         James B. Davis fixed a couple nroff-bugs on the man page, and
  533.         said someone already gave him a dump script (see below).
  534.  
  535.         Richard (R.C.) Vieregge <richv@bnr.ca> found a $ was missing
  536.         from test/ftp.exp.
  537.  
  538. 11/22/91 3.7.2    James B. Davis <james@solbourne.com> straightened out a couple
  539.         things in the Makefile and asked if anyone had written a script
  540.         for dump.
  541.  
  542.         Jeff Okamoto <okamoto@hpcc25.corp.hp.com> had a couple changes
  543.         for HPUX 7 and 8 compat, involving termio stuff.
  544.  
  545.         Prompted by Andy Norman, added note to man page describing how
  546.         to disable all argv processing while using #!.
  547.  
  548.         Converted passmass and rftp over to new version.
  549.  
  550. 11/15/91 3.7.1    Brian Woodson asked me about the Tcl_WaitPids "got unknown
  551.         process" panic.  This is a Tcl bug that John has promised
  552.         to fix.  I'll document how to avoid it in the man page.
  553.  
  554.         Incidentally, I'm going under the knife tomorrow for three
  555.         torn cartilage in my wrist.  The doctors say it may be a couple
  556.         days to couple months.  Until I get back, hang in there.
  557.  
  558. 11/13/91 3.7.0    Yet another bug discovered (and fixed).  "expect eof" was
  559.         failing to remember the buffer, and expect_out(buffer) was
  560.         empty upon return.
  561.  
  562.         Brian Woodson noted I forgot to document the -i flag of close.
  563.  
  564. 11/12/91 3.6.0    Sean Cunningham <sean@moorenet.com> reported that he couldn't
  565.                 open /dev/tty from 'at'.  'spawn' was incorrectly not executing
  566.         code to claim it was a controlling tty.  BSD only.
  567.  
  568. 11/11/91 3.5.1    Brian Woodson notes that version 2 and 3 treat the following
  569.         differently.
  570.  
  571.             proc p {} {spawn s}; expect
  572.  
  573.         In v3, spawn_id is locallized by the proc, and thrown away when
  574.         p returns.  Unfortunately, in v2 due to some sloppy coding on
  575.         my part, spawn always affected the global value of spawn_id.
  576.         This differed from the handling of other variables, and in v3,
  577.         this unusual behavior had to go, because the multiprocess
  578.         handling and the large number of variables implicitly set
  579.         (especially by the expect command) demanded that I be more
  580.         systematic about how this was done.
  581.  
  582.         Since I never depended on this behavior, I never documented it
  583.         as being something you should rely upon.  Alas.  To fix it, add
  584.         the line
  585.  
  586.             global spawn_id
  587.  
  588.         to the beginning of any proc that calls spawn and needs the
  589.         value of spawn_id implicitly defined outside of the proc.
  590.  
  591. 11/6/91    3.5.0    Drew Whitehouse <Drew.Whitehouse@anu.edu.au> hit a bad pointer.
  592.         I forgot an initialization in expect.c which caused problems
  593.         when an EOF occurred which had no eof pattern.
  594.  
  595. 11/2/91    3.4.0    Added FAQ from various questions people have sent me and my
  596.         replies.  Made CONVERTING file on converting from 2 to 3.
  597.  
  598.         Nelson H. F. Beebe <beebe@math.utah.edu> found a missing
  599.         declaration for exp_tty_original in bye() of main.c.  How come
  600.         the Sun C compiler doesn't complain about this!?!!?
  601.  
  602.         Nelson also reported that SunOS 4.0.3 had a problem including
  603.         varargs.  It turned out that old varargs had check for
  604.         reinclusion, and tclInt.h also includes it.  So I added an
  605.         #ifdef va_dcl and put my inclusion after tclInt.h.
  606.  
  607. 10/31/91 3.3.0    Converted most of the examples.  Three more to go.
  608.         Worked on man page some more.
  609.  
  610.         Modified expect so that if timeout > 0, and nothing in the
  611.         buffer matched, it will force a read, no matter how long the
  612.         preceeding code took.  This may be hard to understand, but is
  613.         the intuitive behavior that I always desired.
  614.  
  615. 10/30/91 3.2.0    Fixed bug in eof handling.  Converted some more of the
  616.         examples, and added to Makefile.
  617.  
  618. 10/29/91 3.1.0    Fixed slight bugs in tty mode switching, pty initialization
  619.         (via stty).
  620.  
  621.         Fixed expect library.  Fixed compatibility code for non-BSD
  622.         systems.  As usual, I could only test it so far, not having
  623.         all these systems at my disposal.  I don't expect major
  624.         problems though, since the basic functions I depend on haven't
  625.         changed.
  626.  
  627.         Completely rewrote handling of continue, return, etc in
  628.         expect, interact, interpreter.  It's actually systematic now.
  629.  
  630.         Checked with John O. about some code to bounce wild return
  631.         codes, which he said was a mistake and would remove, so now I
  632.         can pass my own return codes different from Tcl's.
  633.  
  634. To get | to return ->    TCL_RETURN    TCL_OK        (no return)
  635.        V
  636.     expect        return        default        continue -expect
  637.     interact        return -tcl    return        default
  638.     interpreter        return -tcl    return        default
  639.  
  640.         What this table says is, to get "interpreter" (for example) to
  641.         return TCL_RETURN to its caller, you must say "return -tcl",
  642.         because "return" makes it return TCL_OK.
  643.  
  644.         The "argumented" versions are considered to be the uncommon
  645.         form.  In particular, I'd be surprised if anyone ever uses
  646.         the -tcl argument, but it's there for completeness and
  647.         consistency now.
  648.  
  649.         Put together a FAQ.  Needs more work, but hopefully worthwhile
  650.         as is.
  651.  
  652.         Computing Systems with Expect article appeared a couple days
  653.         ago.  How ironic that it describes the old version of Expect.
  654.         Nonetheless, it looks ok.
  655.  
  656. 10/25/91 3.0.0    alpha!
  657.         First release of Tcl-6.0-ready code.
  658.         It might fly for a couple seconds.
  659.  
  660.     Here is a quick list of changes.  Besides Tcl incompatibilities, Expect
  661.     incompatibilities are flagged below as:
  662.  
  663.     **    major - scripts definitely won't run if they depend on this
  664.     *    minor - scripts probably will run but there is some subtle
  665.         change that should be examined).
  666.  
  667.     **    Select renamed 'ready' and undocumented.  Seems pointless now.
  668.  
  669.         Added support to expect command for waiting on patterns from
  670.         different processes.  The old version implemented this via
  671.         'select' but but it is much simpler via expect.  Added -i to
  672.         a number of commands to signify a spawn_id which overrides
  673.         the variable.
  674.  
  675.         Added any_spawn_id to match any spawn_id.
  676.         An explicit null pattern, forces a spawn_id to be considered
  677.         when all it can possibly match are any_spawn_id patterns.
  678.  
  679.     *    output is no longer flushed to expect_match upon timeout. 
  680.         May be multiple buffers now, so it doesn't make sense to
  681.         flush just one.)  -n was added to disable transfers from input
  682.         buffer to expect_match var.  I suspect it will only be used
  683.         for experimentation.
  684.  
  685.         Added expect -re for regular expressions.  Added expect_out
  686.         array to retain indices and strings of partial matches for
  687.     **    for both glob and re.  expect_match has been renamed
  688.         expect_out(buffer).
  689.  
  690.         A la Tcl, added -nocase for both types of patterns.  (Oddly,
  691.         Tcl's case only does it for regexps.)
  692.  
  693.         By popular demand, unanchored glob patterns.  Old patterns
  694.         will continue to work, since earlier interpretation was much
  695.         stricter.  Unfortunately, unanchored matches make certain user
  696.         errors easier.  For instance, people will send answers before
  697.         seeing all of the question.  Typically, output can 'look'
  698.         ugly, as answers land in the middle of other things.
  699.  
  700.         To anchor patterns, use ^ in beginning and/or $ at end.
  701.  
  702.         Added expect_out(spawn_id) to report which spawn_id was read.
  703.  
  704.         Made expect and variants understand all args as one arg.
  705.  
  706.         Added 'default' pattern.
  707.  
  708.         Added continue_expect command.
  709.  
  710.         Added expect_before, expect_after commands which take same
  711.         args as expect, but continue to stay in effect for all expects.
  712.  
  713.     **    Added match_max command, deleted it as a variable.  The old
  714.         way was too coarse for use over multiple spawn_ids.  With no
  715.         arg, returns current max.  Takes -i flag and -d for default.
  716.  
  717.         Added globbing to spawn command.
  718.  
  719.         Added optional -i spawn_id to wait.
  720.  
  721.         Added optional -i to send (and all it's variants).
  722.  
  723.         Renamed trace to 'strace' since it conflicts with Tcl's new
  724.         trace command.  Since 'trace' traces variables, I figured
  725.         'strace' wasn't too bad (for "statement trace").  I felt
  726.         obliged to make it short and not as obliged to make it as
  727.         meaningful since it will probably invariably be typed by hand.
  728.  
  729.         Made timeout == -1 mean infinity.
  730.  
  731.         Made interact do pattern matching in both directions via
  732.         use of -o flag.
  733.  
  734.         Added -F flag for convenience.  If -f or -F used, interact
  735.         can no longer be overrun.  In particular, if more characters
  736.         arrive then match a pattern, remaining characters will be
  737.         buffered rather than thrown away (old behavior).
  738.  
  739.         Patterns may now be substrings of one another.
  740.  
  741.         Made interact optionally take all args as one.
  742.  
  743.         Default action is now 'interpreter' (see below).
  744.         interpreter now forces cooked mode, and echos results
  745.         so you don't have to constantly say "send_user [...]\n"
  746.  
  747.     *    Interact reads characters that have been buffered but not
  748.         matched by expect.  And vice versa.  Does anyone care?
  749.         (My rogue script did.)
  750.  
  751.         From discussion with John Conti, I decided to make
  752.         'interpreter' a separate command to start up interactive
  753.         command processor.  Changed default action in interact to this.
  754.         Added eval depth and event id to prompt to interpreter.
  755.  
  756.         Added expect_library which contains path for commonly
  757.         sourced expect scripts.  Automatically source expect.rc
  758.         out of expect_library unless -N given.  Automatically source
  759.         ~/.expect.rc unless -n given.
  760.  
  761.         Added expect_version command to print and/or verify script
  762.         is compatible with running expect.  Tcl version is also tested.
  763.         Felt it was worth making this a command because it's such a
  764.         pain to tear apart version strings.
  765.  
  766.         Tcl's close and exit are both subsumed by expect's commands
  767.         of the same name.
  768.  
  769.         Rewrote mode switching code so that "system stty" is handled
  770.         specially.  This allows interact and interpret to get the modes
  771.         they want, without burning the user.  It is now much easier
  772.         to leave expect in raw mode all the time, but the choice is
  773.         up to the user.
  774.  
  775.         Added vgrindefs, courtesy of Brian Fitzgerald.
  776.  
  777. 9/23/91        Tcl 6.0 released.  This new Tcl has some incompatibilities
  778.         with the old Tcl, so as long as everyone is changing their
  779.         scripts already, I'm taking the opportunity to make some
  780.         incompatible changes to Expect that I've wanted to do for a
  781.         long time.
  782.  
  783. 9/11/91 2.67    Ed Klein <eklein@syrinx.umd.edu> added support for SVR4 in the
  784.         form of pty_svr4.c and mods to command.c.
  785.  
  786.         Added explanation to man page of how to create unreadable but
  787.         executable scripts.  (No, chmod 111 doesn't work.)
  788.  
  789.         Mark Diekhans <markd@grizzly.COM> pointed out to me that there
  790.         is a potential problem with the trap command:
  791.  
  792.         "There is no control over when the signal will cause Tcl_Eval
  793.         to be executed.  There is a chance that code in the Tcl library
  794.         will be executing when the signal comes in and the interpreter
  795.         data structure will be in an inconsistent state.  This could
  796.         cause all sorts of nasty things to happen.  In our Extended Tcl
  797.         (4.0) we added signal handling. but the way we implemented it
  798.         was to have the signal handler set a global flag.  We modified
  799.         Tcl_Eval to check the flag after it finishs executing each
  800.         command.  If the signal came in, Tcl_Eval then returns an error
  801.         such as: "SIGINT signal received".  Signals may then be caught
  802.         with the catch command and processed."
  803.  
  804. 9/10/91 2.66    Don Jackson <Don.Jackson@Eng.Sun.COM> found a syntax error in
  805.         the usage error message of the example ftp-rfc script.
  806.  
  807.         Marty Olevitch <marty%cosray@wuphys.wustl.edu> provided mods to
  808.         support MORE/bsd.  Namely, added #include types.h to expect.c
  809.         and extern int errno to a number of files.
  810.  
  811.         Scott Hess <scott@nic.gac.edu> noted a potential problem in
  812.         interact.  Since interact only checks patterns at beginning
  813.         of reads, user can conceivably type fast enough so that
  814.         patterns are typed in the middle of a read.  In reality this
  815.         doesn't happen, but Scott was driving one expect with another
  816.         expect and in this way provoked the behavior.
  817.  
  818.         The solution is to read chars one at a time, either by
  819.         read(,,1) or buffering in a stdio-like way, but I'm not going
  820.         to do that because the code should really be rewritten entirely
  821.         and it just isn't worth it, since it is so easy to get around
  822.         at the user level.
  823.  
  824.         Steve Legowik found that spawn-disconnect sequences fail.  The
  825.         pty testing I added in version 2.55 causes expect to regain the
  826.         slave as a controlling tty, which generated SIGHUPs.  If anyone
  827.         knows a clean way to avoid regain controlling ttys, let me
  828.         know.  For now, I just set SIGHUP to SIG_IGN in the disconnect
  829.         command.
  830.  
  831. 8/14/91 2.65    Old passmass script changed root password.  I renamed it to
  832.         passmass.old, and made a new one which works for any account.
  833.         It also supports yppasswd, telnet/rlogin, different names for
  834.         accounts on different machines.  Handles VMS machines, too.
  835.  
  836.         Added Computing Systems paper to expect distribution and moved
  837.         all expect-related things to separate expect directory in our
  838.         ftp directory.
  839.  
  840. 8/5/91    2.64    Achille Petrilli <achille@miss.cern.ch> found that on an SGI,
  841.         the expect command ocassionally returned "no more processes".
  842.         He traced the problem back to O_NDELAY in the open, which was
  843.         taken as-is from the man page, by someone else who's code I
  844.         didn't look at too closely at the time.  The result works now.
  845.         Oddly I thought I fixed this error myself when the SGI support
  846.         was first installed, but I cannot find it.  I evidentally
  847.         screwed up.
  848.  
  849. 7/31/91    2.63    Steve Legowik <legowik@cme.nist.gov> wanted to implement
  850.         callback by having a modem dial out and NOT go away, but
  851.         interact in the reverse direction.  I added "interact -u" to
  852.         support the idea of changing the user from the default stdio
  853.         to a second spawned process.  The result is that we can now
  854.         write a modem callback program that doesn't depend on the cute
  855.         trick of having getty recognize DTR which only worked when the
  856.         modem was directly connected to the computer.  In Steve's case,
  857.         there were several network switches in the way.
  858.  
  859.         Added "overlay" function which is similar to plain "exec" in
  860.         shell.  (Too bad Tcl took the name already.)
  861.  
  862.         Added robohunt scripts to the test directory.  I wrote these
  863.         back in January, '91 and forgot about them til now.  But I
  864.         suppose they are illustrative (at the very least of how to
  865.         generate truly random numbers).  Ha.
  866.  
  867. 7/20/91    2.62    Carl Witty <cwitty@jessica.stanford.edu> pointed out my fdset
  868.         implementation (for systems that don't have it) wasted some
  869.         space.  I had commented it correctly, however, making the
  870.         incorrect code obvious (except to me).
  871.  
  872.         Robert Howland <howland@rahjr.ame.nd.edu> pointed out that
  873.         expect complained about not running from a real terminal under
  874.         cron.  Oops!  So I added a test to skip saving/restoring
  875.         terminal modes when fd 0 is not a tty, since this is obviously
  876.         pointless.
  877.  
  878. 7/19/91    2.61    Oops.  Forgot to include getline and getline.exp examples even
  879.         though they have been documented!
  880.  
  881. 7/17/91    2.60    UMich changed interface to weather system necessitating change
  882.         to weather script.
  883.  
  884. 7/9/91    2.59    Didn't correctly comment things right in Makefile.  Fixed.
  885.  
  886.         Changed 'close' in gethostbyaddr example to 'catch close'.
  887.  
  888. 6/22/91    2.58    Made new file (pty_sgi.c) for supporting Silicon Graphics ptys.
  889.         Silicon Graphics select fails to see eof immediately but poll
  890.         works ok.  Unfortunately, there was an error in inter_poll
  891.         (bad_io was uninitialized).  Silicon Graphics works now.
  892.  
  893.         Andy Norman <ange@hplb.hpl.hp.com> notes that linking expect
  894.         with the BSD compatibility library under HP-UX, libc.a must
  895.         be loaded before libBSD.a.  Modified Makefile to reflect this.
  896.         He notes that there is a problem with expect not reading an EOF
  897.         from the current process.  This should go away with HP-UX 8.0
  898.         when select has been enhanced to flag exceptions in the readfds
  899.         argument.  Probably inter_poll would work.
  900.  
  901.         Edward Haines <haines@bbn.com> notes that close returns EPERM
  902.         ("Not owner") on his Sun 4.0.3.  This is rather startling!
  903.         (That's what I get for checking the return value of close!)
  904.         He said it is possible that they have modified things (viz.
  905.         DDN X.25 is loaded), but it still sounds incredible.  For now,
  906.         I told him to either "catch" all closes or to remove the check
  907.         in the source code.  
  908.  
  909.         Added example scripts: ftp-rfc retrieves an RFC from uunet
  910.         via ftp.  archie mails back a listing from the archie server.
  911.  
  912.         Add the rest of Hal Peterson's changes for Cray support, 1)
  913.         fixing a problem where spawned processes flushed unread I/O
  914.         upon process exit, and 2) creating processes with the correct
  915.         uid.  See his comments in command.c for more info.
  916.  
  917. 6/6/91    2.57    (On Cray) made signal handler declarations right.  Added
  918.         missing #endif.  Added includes to pty_unicos.c.  Fixed bug
  919.         in two bugs in CmdSend, one involving send_stderr, the other
  920.         send_user.  All of these are from Hal Peterson.
  921.  
  922.         Added gethostbyaddr as example script.  Given an internet
  923.         address, it returns the domain name.  By querying neighboring
  924.         hosts if the name server fails, a much higher probability of
  925.         returning the name is obtained.
  926.  
  927. 5/30/91    2.56    Mispelled "match_max" as "max_match" in rftp script.  This
  928.         caused files after the 2000 byte mark (per directory) to be
  929.         skipped.
  930.  
  931. 5/21/91    2.55    Revisited BSD pty code to reject ptys that have either slave or
  932.         master side already open.  This fixes problems rare problems
  933.         such as expect not being able to see EOFs from the child proc.
  934.         (because another process still has the pty slave side open).
  935.         USG and Cray pty code could probably use this code, too.
  936.  
  937.         Fixed bug in expect library (lib_exp.c) which caused output to
  938.         be copied to stderr instead of logfile when logfile_all was
  939.         set.  Per Sreedhar Muppala <muppalla@nssdca.gsfc.nasa.gov>.
  940.  
  941. 5/16/91    2.54    Fixed weather script to accomodate occasional Weather Watch
  942.         that would cause an unexpected initial question to pop up.
  943.  
  944. 5/15/91 2.53    Added comment to BUG section of man page describing pty
  945.         misbehavior with non-interactive programs (search for "553061"
  946.         below), as per Hal Peterson <hrp@cray.com>.
  947.  
  948.         Removed note from README about asking Ousterhout for SV TCL
  949.         at his request.
  950.  
  951. 5/11/91    2.52    Fixed a syntax error that Bruce Larson <ires@kaspar.ires.com>
  952.         found in inter_poll.c
  953.  
  954. 4/23/91        Computing Systems accepted paper on Expect for issue 4.2.
  955.  
  956. 4/18/91    2.51    Added some example scripts:
  957.         weather - retrieves weather forecasts from National Weather
  958.         Service via University of Michigan server.
  959.         rftp - ftp a directory hierarchy (i.e., recursively).
  960.  
  961. 4/18/91    2.50    Changed timeout to apply to total time in expect rather than
  962.         per read().  Original behavior hung forever when my modem test
  963.         script started listening to a modem than spit out 1 spurious
  964.         character every 10 seconds (very consistently).
  965.  
  966.         Hal Peterson <hrp@pecan.cray.com> noted that exp_spawnv's args
  967.         didn't match documentation.  Fixed in favor of documentation.
  968.         Several other funcs don't match header file (but typechecking
  969.         is avoided during compilation), because it was too hard for me
  970.         to make the header file ANSI compliant and support varargs 
  971.         (which is undeniably more portable than stdargs at this point).
  972.         Fixed prototype declarations (again) in expect.h for C++ and
  973.         Standard C.  Verified with GNU, G++ and Sun C (proto-less).
  974.  
  975.         Added exp_disconnect to library.  Moved alarm calls closer
  976.         to read() to tighten windows.
  977.  
  978. 4/11/91    2.49    Changed passmass script to use timeout of 1000000 instead of
  979.         10000000000 after discovering that Ultrix sleep(3) doesn't
  980.         sleep at all for large values!
  981.  
  982.         Added support for systems without dup2 (SVR2) per
  983.         <elston@edwards-tems.af.mil>.
  984.  
  985.         Added test/Makefile to shar as per Chris Pribe
  986.         <cpribe@park.bu.edu>.
  987.  
  988. 4/4/91    2.48    Fixed possible problem with poll in inter_poll.c for systems
  989.         that check for a valid address even though no members are used.
  990.  
  991. 3/27/91    2.47    Added support for Cray Unicos 6.0, which of course is different
  992.         from Unicos 5.1 (which was different from everything else)!
  993.         This and other minor bugs fixed courtesy of Pete Termaat.
  994.  
  995. 3/19/91    2.46    Removed a "feature" which caused patterns with no whitespace
  996.         not to be run through SplitList.  While not documented not to
  997.         do so, this was mystifying even to me when I saw it.  For
  998.         William Waite.  The result actually simplified the internal
  999.         handling of multiple patterns, removing some excessively
  1000.         complex logic that I thought would be helpful for speed, but
  1001.         that in retrospect, was not that important.
  1002.  
  1003. 3/16/91    2.45    Added my own definition of FD_SET, fd_set, etc, test for
  1004.         SIGABRT, and support different types of signal arg func
  1005.         definitions to support SunOS 3.5 as requested by William Waite
  1006.         <waite@scotty.colorado.edu>.
  1007.  
  1008. 3/14/91    2.44    Removed redundant def'n of pty_stty in pty_usg.c, redef of
  1009.         sprintf and added signal.h to command.c to make compiles
  1010.         cleaner on SV3 and HPUX machines.  All compliments of Mike
  1011.         Gourlay.
  1012.  
  1013. 3/10/91    2.43    Added -s (for slow) and -h (for human) flags to send.  This
  1014.         had been requested by several people including Frank Terhaar-
  1015.         Yonkers (who actually wrote and tested a "send_slow" command),
  1016.         and Steve Simmons who suggested the "human" option (over a year
  1017.         ago), and Brian Woodson (brianw@swqa-sun.ESD.3com.com), who
  1018.         requested both!  Thanks to NIST statistician, Keith Eberhardt,
  1019.         who taught me about the Weibull Distribution.
  1020.  
  1021.         According to Jim Thomas <jthomas@nmsu.edu>, 3b2 requires
  1022.         defines for R_OK and W_OK.  Added to pty_usg.c.
  1023.  
  1024.         Added support for "-" as file name on command line to mean
  1025.         stdin as requested by Steve Clark <clark@cme.nist.gov>.
  1026.  
  1027.         Wrote passmass (change root password on a set of machines) as
  1028.         requested by Ken Manheimer <klm@cme.nist.gov>.  Added to test
  1029.         directory.
  1030.  
  1031. 2/21/91 2.42    Removed reinstallation of signal 0 in signal handler.
  1032.  
  1033.         Added hook for setting initial pty parameters when started in
  1034.         the background.  Should've done this a long time ago, but I
  1035.         was never really happy with my solution and had hoped I would
  1036.         think of a nicer method.  I only hope this is clean enough.
  1037.  
  1038. 2/10/91    2.41    Added buffer_full keyword to solve Brian Fitzgerald's problem.
  1039.         It disables "forgetfullness" so that when expect's internal
  1040.         buffer hits match_max, whatever it has returns at that point.
  1041.         Didn't add this to the library version, because I want to think
  1042.         for awhile about the cleanest way to do it.
  1043.  
  1044. 2/4/91    2.40    Per Brian Fitzgerald (fitz@mml0.meche.rpi.edu), fixed error in
  1045.         interact example on man page which incorrectly implied that
  1046.         "kill" was built-in.
  1047.  
  1048.         Added fork/disconnect functions.  This solved the problem of
  1049.         Jerry Friesen (jafries@snll-arpagw.llnl.gov) who wanted to run
  1050.         an expect script that asks for a password and then goes to
  1051.         sleep for awhile before waking up to run in the background (to
  1052.         run a program using Kerberos).
  1053.  
  1054. 1/30/91    2.39    Per Jim Johnson (jaj@mlb.semi.harris.com), added declaration
  1055.         and documentation for exp_pid in libexpect.
  1056.  
  1057. 1/10/91    2.38    More mods from Frank Terhaar-Yonkers.  Also, some requests
  1058.         from Pete TerMaat (pete@willow.cray.com) for features:
  1059.  
  1060.         1) a single-step facility.  Yeah, that would be nice.  No
  1061.         ideas on how to do this easily.
  1062.  
  1063.         2) Generate scripts automatically after watching a session.  
  1064.         This is hard.  Read more about this in the FAQ.
  1065.  
  1066. 1/10/91    2.37    Added support for Cray Unicos 5.1, all courtesy of Frank
  1067.         Terhaar-Yonkers (fty@sunvis.rtpnc.epa.gov).  Most of it had to
  1068.         do with pty support.
  1069.  
  1070. 1/8/91    2.36    Modified expect.h to support C++ and ANSI prototypes.  Added
  1071.         appropriate example in test directory based on chesslib.c.
  1072.  
  1073. 1/7/91    2.35    At the request of Jan Norden (jano@imdpy1.im.se) added
  1074.         NO_MEMCPY and NO_STRING_H defines for Pyramid.
  1075.  
  1076. 1/3/91    2.34    Added a check to protect against a longjmp occurring between
  1077.         i_read and alarm(0).  Didn't think this would be a problem but
  1078.         evidentally a function return modifies the stack, so it cannot
  1079.         be returned to again.  Drat!  This appeared in the robohunt
  1080.         script I wrote which plays hunt automatically and uses 1
  1081.         second timeouts.
  1082.  
  1083. 12/19/90 2.33    Add signal to sighandler, to reinstall signal for those systems
  1084.         that need it.
  1085.  
  1086. 12/12/90 2.32    Removed test for args to expect.  I only recently realized that
  1087.         no args still allows a valid way to check for timeout and eof!
  1088.  
  1089. 12/6/90    2.30-1    Mike Gourlay (mike@penguin.gatech.edu) found and fixed quite a
  1090.         few SV-related problems that I had introduced since Clem's
  1091.         fixes.  We eventually got it to run on his HPUX machine, a
  1092.         mixed breed of BSD/USG stuff.  But spawning a shell worked but
  1093.         always produced a complaint about "no access to tty" which we
  1094.         were never able to get rid of, and he had a problem with
  1095.         exp_fexpect (but not exp_expect), although it still isn't clear
  1096.         if that was expect's fault.  He said he would speak to some HP
  1097.         engineers about what he found.
  1098.  
  1099. 12/5/90    2.29    Fixed a malloc off-by-one bug in new C library.  After
  1100.         contemplation, revised interfaces.  Decided that rather    than
  1101.         following the original 'expect' style, it should be more like
  1102.         what a C programmer is used to, so I made the file descriptors
  1103.         be parameters to exp_expect rather than globals, added an
  1104.         exp_popen which is a popen equivalent, and added exp_fexpect
  1105.         versions which are stream equivalents.
  1106.  
  1107.         Am not happy with exp_fexpect.  It is much less efficient than
  1108.         exp_expect, because there is no way to (portably) get fread()
  1109.         to return the way read() does, with less then the number of
  1110.         characters you supplied a buffer for.  Instead, I have to call
  1111.         fgetc for every char.  Ugh.
  1112.  
  1113.         Add a couple new examples, including lpunlock, time.exp,
  1114.         chesslib.c (using file descriptors) and chesslib2.c (which uses
  1115.         stream pointers).
  1116.             
  1117. 12/3/90    2.28    Created C library version of expect.
  1118.  
  1119. 11/29/90 2.27    Fixed bug in interact - when no string actions were defined,
  1120.         the mapping table length wasn't set at all.
  1121.  
  1122.         Made interact call printify when debugging so that crlf and
  1123.         other nonprintables are visible.  Fixed bug in printify which
  1124.         interpreted some characters wrong due to parity.
  1125.  
  1126.         Added some more examples to the distribution (lpunlock,    dvorak,
  1127.         timed_read) and put in another tip in the TCL HINTS section of
  1128.         the man page.
  1129.  
  1130. 11/18/90 2.26    Fixed mismatched comment per Craig Warren (ccw@deakin.oz.au).
  1131.         Also improved man page entry for "interact".
  1132.  
  1133. 11/17/90 2.25    Added -f (fast) on interact options, and made default case a
  1134.         little more efficient.  Added explicit support for SIG_IGN and
  1135.         SIG_DFL in trap command.  Added ability to specify signals
  1136.         symbolically for portability.
  1137.  
  1138. 11/15/90 2.24    Craig Warren (ccw@deakin.oz.au) wanted to exit expect while in
  1139.         interact with a single character.  Dan Bernstein
  1140.         (brnstnd@kramden.acf.nyu.edu) wanted to suspend with a single
  1141.         character.  So I generalized interact's escape character to
  1142.         string-action pairs.
  1143.  
  1144. 11/7/90    2.23    Tired of getting reports that various (Ultrix 3.1, BSD4.3) C
  1145.         compilers can't handle ternary conditionals returning ptr to
  1146.         func returning void.  Made all (2) such statements into
  1147.         if-then-elses.  Per Steve Simmons (scs@iti.org).
  1148.  
  1149. 10/8/90    2.22    Allow "log_file" even when no log is open.  This makes user
  1150.         programming a little simpler - they don't have to remember
  1151.         whether they opened the log or not.
  1152.  
  1153. 9/27/90    2.21    Fixed bug, v2.19 introduced.  debuglog(unknown string) requires
  1154.         a "%s" as formatting for protection against %'s in the unknown
  1155.         string.
  1156.  
  1157. 9/17/90    2.20    4 syntax errors in interact_poll.c, vik@sequent.com.  Added
  1158.         quotes to all the sends (now that this is more efficient) in
  1159.         the examples and man pages.  Also removed a misstatement in the
  1160.         man page about the behavior of double quotes.
  1161.  
  1162. 9/15/90 2.19    Removed buffering from send command.  Originally, I buffered
  1163.         the args, so I could do it all in one write.  But to send
  1164.         variables bigger than the buffer didn't work.  I didn't think
  1165.         about this before.  But Joe Gorman
  1166.         (Joe.Gorman@elab-runit.sintef.no) asked me if you could "send"
  1167.         a file in one command, and of course you can using [exec cat]
  1168.         as the argument to send, but the damn buffering prevented big
  1169.         files from being sent.  Anyway, now it works.
  1170.  
  1171. 9/14/90        Fixed the declarations of nflog and nferrlog.  Added a #define
  1172.         so lack of pid_t could be controlled from the Makefile.  Per
  1173.         Andy Holyer (and@ux.rfhsm.lon.ac.uk)
  1174.  
  1175. 9/4/90    2.18    Added trap command to catch signals.  This is nice as (among
  1176.         other things) it allows you to turn off the conversion of ^C to
  1177.         timeout which was requested by John Conti <jconti@cisco.com>.
  1178.  
  1179. 8/21/90 2.17    Fixed bug in printify.  Forgot to reset ptr to beginning of
  1180.         print buffer.  Made debugging info wrong.  Possibly screwing up
  1181.         other things on overflow.
  1182.  
  1183.         Paper accepted into USENIX LISA!
  1184.  
  1185. 8/15/90        libes    Cleaned up man page.  Made tabs line things up
  1186.         correctly, finally.
  1187.  
  1188.         Found another problem with ptys (at least under SunOS 4.1 and
  1189.         earlier).  When last pty-slave fd closed, any unread output is
  1190.         lost after a short window of time (around 10 seconds on a
  1191.         Sun 3/60).  Sent example ptybug.c to Sun demonstrating this and
  1192.         EIO problem found earlier.  (Service Order #553061)
  1193.  
  1194. 8/6/90    2.16    Added -f to debug command, -a to log_file command.  This
  1195.         required significant changes, including revisiting all the
  1196.         logging routines, plus miscellaneous output done in special
  1197.         places.  Noted that it cannot be done with getopt, since it
  1198.         could be called during main's getopt, and getopt is not
  1199.         reentrant!  (Guess how I discovered this!!)
  1200.  
  1201.         I'm not particularly happy with the design, but maybe others
  1202.         won't be.  In any case, I like the benefit of it and am now
  1203.         glad that -a was asked for.  Per Harry Bochner and Ira Fuchs
  1204.         (fuchs@pucc.bitnet).
  1205.  
  1206.         Changed behavior of argv, so that 0 == [length $argv] when no
  1207.         script/args supplied.
  1208.  
  1209. 8/4/90    2.15    Added debug command, so -d-ness could be changed while expect
  1210.         is running.
  1211.  
  1212. 7/20/90    2.14    Fixed small bug in -d output from expect, which    printed ^Z as
  1213.         ^:
  1214.  
  1215. 7/18/90    2.13    Added wait command.  A waitpid/waitspawnid would be nice and
  1216.         cleaner, too, but since csh doesn't need it, it is probably not
  1217.         worth much.
  1218.  
  1219.         Consequently, removed SIGCHLD handling from command.c.  It
  1220.         worked under SV but not BSD.  By forcing users to explicitly
  1221.         code waits, resulting scripts are more portable.
  1222.  
  1223.         Rewrote rogue example.  rogue sometimes misses EOF (generated
  1224.         by close on our side) and continues reading.
  1225.  
  1226. 7/16/90    2.12    Removed buffering from variadic log routines.  This was
  1227.         faulting when the buffers overflowed.
  1228.  
  1229.         Cleaned up the -d output from expect, so it is much more
  1230.         readable.  For example, control characters are now visible.
  1231.  
  1232. 7/14/90    2.11    Added declaration for errno, to support 4.3BSD.  Per Alan
  1233.         Crosswell.  Added -i flag and related behavior.
  1234.  
  1235. 7/12/90    2.10    Fixed bug where timeout = 0 waited forever rather than not
  1236.         waiting at all.
  1237.  
  1238. 7/11/90        Fixed man page example which didn't include the blank on the
  1239.         end of an ftp prompt.
  1240.  
  1241. 7/9/90    2.9    Fixed bug in send when spawn_id = $user_spawn_id.
  1242.  
  1243. 6/27/90    2.8    Integrated some mods from clem cole (clemc@ccc.com) to support
  1244.         System V.3 (386/ix Version 2.02).  Unfortunately, he didn't do
  1245.         "select".
  1246.  
  1247. 6/25/90    2.7    Test that cmdfile and logfile are open before fclosing in child
  1248.         while spawning.  Per Corey Satten <corey@cac.washington.edu>
  1249.  
  1250. 6/24/90    2.6    Pty master returns EIO instead of EOF when pty slave closes.
  1251.         Bug in pty driver?  Until I figure this out, I have put in code
  1252.         to interpret EIO to EOF.
  1253.  
  1254. 6/21/90        Added new section to expect man page - Tcl hints.
  1255.  
  1256. 6/14/90        Spoke at USENIX.  Went well.  Added USENIX paper as separate
  1257.         ftp archive.
  1258.  
  1259. 6/4/90     2.5    Fixed bug in ^C catching during expect.  Changed man page to
  1260.         accurately describe what ^C does.  Fixed bug that caused "send"
  1261.         to screw up when handed 0 arguments.  All per Harry Bochner.
  1262.  
  1263. 6/1/90    2.4    Made trailing empty action in expect optional, primarily to
  1264.         make straightline code easier to read.
  1265.  
  1266. 5/15/90    2.3    Changed expect to strip nulls from program output since there
  1267.         is no way for Tcl to handle them, per Harry Bochner.
  1268.  
  1269. 5/5/90        Added "send_error" command.
  1270.  
  1271. 4/26/90        Got USENIX paper back from Kolstad to proof.  Am depressed at
  1272.         how awfully they formatted it.
  1273.  
  1274. 4/25/90    2.2    Eric Newton found that expect's special variables weren't being
  1275.         found inside of user subroutines.  Had to do with new Tcl,
  1276.         which now differentiates between variables that are undefined
  1277.         vs. empty.
  1278.  
  1279. 4/24/90        Upgraded Tcl from 2.1 to 3.3.
  1280.  
  1281. 4/22/90        Added special behaviors of ^C in expect, and when profiling.
  1282.         Profiled rogue (at urging of Ousterhout).
  1283.  
  1284. 4/10/90    2.1    Added select command.  Added support for user_spawn_id so that
  1285.         you could treat user just like another process (i.e. with send
  1286.         and expect).  Decided to leave send_user/expect, since scripts
  1287.         are more readable with them.
  1288.  
  1289. 4/2/90    2.0    Changed syntax of expect to provide alternatives (a la Tcl
  1290.         case), per suggestion of John Ousterhout.  Note that this
  1291.         breaks pre-2.0 scripts.
  1292.  
  1293. 3/31/90        Got great comments from Ousterhout.  (This time he said that he
  1294.         really liked the idea.  Maybe he realizes how much it will
  1295.         promote Tcl!)
  1296.  
  1297. 3/30/90        Got comments from dpk.  Made me think more about Perl.
  1298.  
  1299. 3/28/90        Evi said I should turn the paper in unformatted and they will
  1300.         format it.  (She's kidding, I hope.)
  1301.  
  1302. 3/27/90    1.8    Rewrote interface so that raw arguments can be passed in like a
  1303.         shell.  I'd been thinking about this for some time, but Eric
  1304.         Newton finally prodded me into action.
  1305.  
  1306. 3/25/90        Got first corrections for paper - from Sue Mulroney!
  1307.  
  1308. 3/24/90        Observed that it is possible to use the #! syntax with expect.
  1309.         I asked John O. about this (his choice of # as a comment
  1310.         character), and he said it was pure coincidence.  Deprecated
  1311.         request to end scripts in ".exp".
  1312.  
  1313.         Ted Hopp volunteered to be my Center WERB reader.
  1314.  
  1315. 3/23/90        Finished 1st draft of USENIX paper and sent copies to John
  1316.         Ousterhout and panel chair, dpk@morgan.com.
  1317.  
  1318. 3/20/90    1.7    Deprecated "stty", and added more general "system" command.
  1319.  
  1320.         Sent Evi some complaints about the business of not allowing
  1321.         camera-ready at USENIX.
  1322.  
  1323. 3/17/90        Sent copies of man page to Doug Gwyn and Larry Wall for
  1324.         comments.  Note that gwyn downloaded it.
  1325.  
  1326. 3/16/90        Am really irritated by USENIX.  My paper has been put in a
  1327.         session against another session, the BSD people.  Furthermore,
  1328.         they called my paper an application, when it is no more so than
  1329.         any other shell or language.  Better I should be in "lessons
  1330.         learned".  Mashey said take a hike, i.e., it was too late to
  1331.         change the schedule.  On top of that, our session has four
  1332.         people in it, so I'll have very little time to speak.  Grrrr.
  1333.  
  1334. 3/13/90    1.6    Added "stty", because without it you can't do things like
  1335.         turning off echo to accept a password.
  1336.  
  1337. 3/8/90    1.5    Abstract was accepted into USENIX!!!!  Time to start writing
  1338.         it!  Sent man page to Ousterhout.  He didn't seem too
  1339.         impressed.
  1340.  
  1341.         Added "send_user/expect_user" after listening to Ken complain
  1342.         about how shell could not do timed reads.  Actually it can, but
  1343.         expect does it much more naturally.  Deprecated echo.  Now, I
  1344.         realize that expect can be viewed as a shell!
  1345.  
  1346.         Changed logfile/loguser to log_file/log_user to match all the
  1347.         variables with underscores in them.
  1348.  
  1349.         Barry Warsaw asked if there was any way one could execute any
  1350.         command from interact (apparently without any reason in mind).
  1351.         Nonetheless, it is a wonderful idea, and I changed the "abort
  1352.         character" in interact to an "escape mechanism".  After
  1353.         escaping, you may execute any command.  return duplicates the
  1354.         old action of the abort character.  Now you can do interactive
  1355.         job control, recursive interacts, etc.  You can bet I didn't
  1356.         get this right the first time!
  1357.  
  1358.         At Scott's request, fixed bug related to pty initializing.
  1359.         Scott was putting expect in the background which disassociated
  1360.         it from a tty, and I was blindly copying the tty parameters
  1361.         without checking to see if they were meaningful or not.
  1362.  
  1363.         Tightened up exit code.  Fixed bug in spawn so it would print
  1364.         error messages when it failed.  Spawn sends back the error
  1365.         message in the pty, if the fork succeeds but exec fails.  Cute!
  1366.  
  1367.         Added "close" command.  Makes scripts much shorter and cleaner.
  1368.  
  1369.         Return string matched by expect directly, rather than setting a
  1370.         special variable.
  1371.  
  1372.         Added "match_max" feature.  Probably no one will ever use it.
  1373.  
  1374.         Added trace command.
  1375.  
  1376. 3/6/90    1.4    Rob Densock was the second user, and suggested (demanded?) the
  1377.         idea of the loguser command.  I added it and changed "log" to
  1378.         "logfile" making the first incompatibility with existing
  1379.         scripts (sorry, Steve).
  1380.  
  1381. 3/1/90    1.3    Trying to make pty code more robust.  Many questions unanswered
  1382.         by manuals.  Did a lot of guessing.  While debugging, looked
  1383.         through pty code in gnuemacs to see if I might increase
  1384.         portability somehow.  I almost barfed when I saw all the funky
  1385.         ifdefs on weird ioctls.  Found lots of comments like "this
  1386.         might work".
  1387.  
  1388. 2/28/90        Sent a short Tcl bug list to John Ousterhout.  He thanked me!
  1389.  
  1390. 2/22-3/90 1.2    Hooked my first user, Steve Ray.  Surprisingly, he only    found
  1391.         one bug in the code (exit didn't handle args correctly), but it
  1392.         was obvious that I need to put more explanation in the man
  1393.         page.  Many of the examples in the man page are based upon his
  1394.         probl..  questions.  Thanks, Steve!
  1395.  
  1396. 2/20/90        Posted news about expect to "general" newsgroup locally.
  1397.  
  1398. 2/15-20/90    Talked to local POSIX reps and then to Steve Albert (AT&T)
  1399.         about portability of select, wait and other system calls.  I'm
  1400.         not impressed by 1003.1.
  1401.  
  1402. 2/9/90        John Ousterhout answered some questions I had about Tcl    syntax.
  1403.         I like this language!
  1404.  
  1405. 2/8/90    1.1    Sandy Ressler suggested the idea of being able to spawn
  1406.         multiple programs at the same time although he didn't say how.
  1407.  
  1408.         It took about a day to design and code the spawn_id hook.
  1409.         Extremely difficult to support this with uucp-style kludge.
  1410.         Switched to using select.  So much for portability.
  1411.  
  1412.         I investigated how to do this portably, and spent some time
  1413.         talking to NIST & AT&T POSIX representatives.  Unfortunately,
  1414.         portability (especially when it comes to select()) remains a
  1415.         dream.  Provided multiple versions of "interact" depending upon
  1416.         what OS you are running.
  1417.  
  1418. 2/7/90    1.0    Completed first cut of "sex" (for "Smart EXec" or
  1419.         "Send/EXpect").  Supports send, expect, echo, log, spawn,
  1420.         interact.
  1421.  
  1422.         Spent a lot of time making "log" write to log in just the right
  1423.         order (across fork and while debug flag enabled).  Ended up
  1424.         writing a bunch of variadic log routines.
  1425.  
  1426.         Fooled around with uucp-style multiple processes versus one
  1427.         process doing select() to read asynchronously.  Using
  1428.         uucp-style for now, since it is more portable.
  1429.  
  1430.         Gave up on pipes, and switched to ptys.  Pipes seem to be
  1431.         messed up by ftp, perhaps because it goes into raw mode?  Ptys
  1432.         are more efficient and cleaner to program albeit less
  1433.         well-documented and portable from system to system.
  1434.  
  1435.         Ken Manheimer helped me explain what the program does.  I kept
  1436.         saying it does "send/expect" processing, and he kept insisting
  1437.         that was meaningless to everyone.  (In fact, it comes from
  1438.         uucp, and I guess uucp hackers are indeed a dying breed.)  Ken
  1439.         gave me an elegant enough sentence that I expanded it into an
  1440.         abstract and sent it in to the USENIX conference the following
  1441.         day (two days after the deadline).
  1442.  
  1443.         I noted that the uucp documentation I referenced in the
  1444.         submission is dated October 31, 1978!
  1445.  
  1446. 1/30/90    0.0    Got a copy of Tcl and went to work.  Tcl was exactly what I
  1447.         need.  Plus, it is easy to use, AND it is documented.
  1448.  
  1449. 1/25/90        Attended Winter 1990 USENIX in DC, with the goal of banging
  1450.         heads with some other gurus in hopes of finding a good
  1451.         send/expect language for a generalized stelnet.  Had looked at
  1452.         uucp and kermit but found nothing general enough.
  1453.  
  1454.         Listened to John Ousterhout's presentation on Tcl.  By the
  1455.         middle of the talk, I had found religion.  At the end when he
  1456.         said it was public-domain, I was ready to orgasm.
  1457.  
  1458. */*/88-89    Spent a lot of time telling Scott how useful his program could
  1459.         be if he made it more general.  I thought it wouldn't be that
  1460.         difficult to make more generic.  Scott was interested but not
  1461.         enough to do it.
  1462.  
  1463. 9/25/87     Helped Scott Paisley write a program called stelnet, that
  1464.         forked a telnet and did very simple send/expect processing.
  1465.         It used pipes, not ptys.  It had no pattern matching, and only
  1466.         straight-line control without error handling.  Nonetheless,
  1467.         this got me to thinking about making stelnet more generic.
  1468.